import '@/style/default/style.scss'
import '~/default/home.scss'
import b from './mod-b'
import c from './mod-c'

console.log(`default theme this is home module use with hot reload: ${b} and ${c}`)
const promise = new Promise((resolve, reject) => {
  setTimeout(() => {
    resolve()
  }, 2000)
  setTimeout(() => {
    reject()
  }, 4000)
})
promise.then(() => {
  document.querySelector('main').appendChild(document.createTextNode('### es6/Promise动态创建文本'))
})
console.log($)
window.onload = () => {
  setTimeout(() => {
    require.ensure([], (require) => {
      require('./async-mod-a')
    })
    console.log('async-mod-a')
  }, 1000)
}
